package router

import (
	"github.com/gin-gonic/gin"
	jwt "github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth"
	"tuowei.com/app/teacher/apis"
)

func init() {
	routerCheckRole = append(routerCheckRole, registerUCenterCheckRoleRouter)

}

func registerUCenterCheckRoleRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) {
	ucenter := apis.UCenter{}
	v1.Use(authMiddleware.MiddlewareFunc())
	v1 = v1.Group("center")
	v1.GET("index", ucenter.Index)
	v1.GET("myInviteCode", ucenter.MyInviteCode)
	v1.GET("getStudentsInvited", ucenter.GetStudentsInvited)
	v1.GET("getMyStudents", ucenter.GetMyStudents)
	v1.POST("cancellation", ucenter.Cancellation)
	v1.GET("performanceReport", ucenter.PerformanceReport)
}
